﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/PersonForJob.Master"
    Inherits="System.Web.Mvc.ViewPage<IEnumerable<FzWeb.Models.Person_Job_History>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    PersonJobApplyHistory
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="leftinfo">
        <div class="leftinfo">
            <div class="tempter">
                <div class="nrkuan">
                    <div class="title jlinfos">
                        <div class="nameinfo">
                            <div class="edits">
                                <span class="names names2">我的职位应聘记录</span>
                            </div>
                        </div>
                        <% using (Html.BeginForm("PersonJobApplyHistory", "person", FormMethod.Post, new { @class = "form" }))
                           { %>
                        <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" style="border-top: solid 1px #0099CC;">
                            <tr>
                                <td height="32">
                                    <input name="textfield" type="text" value="应聘岗位" onfocus="this.value=''" style="color: #999999;
                                        height: 18px;" size="12" />
                                    <%=Html.DropDownList("CompanyType", ViewData["CompanyTypeList"] as SelectList, "==公司性质==")%>
                                    <input name="textfield3" type="text" value="公司名称" onfocus="this.value=''" style="color: #999999;
                                        height: 18px;" size="12" />
                                    <input name="textfield4" type="text" value="工作地点" onfocus="this.value=''" style="color: #999999;
                                        height: 18px;" size="6" />
                                    <input name="DATE" type="text" value="申请日期" onfocus="this.value='';setday(this)"
                                        style="color: #999999; height: 18px;" size="8" />
                                    <input name="DATE" type="text" value="发布日期" onfocus="this.value='';setday(this)"
                                        style="color: #999999; height: 18px;" size="8" />
                                    <%=Html.DropDownList("ApplyReadStatusList", ViewData["ApplyReadStatusList"] as SelectList, "==阅读状态==")%>
                                    <label>
                                        <input type="submit" name="Submit" value="搜索" />
                                    </label>
                                </td>
                            </tr>
                        </table>
                        <% } %>
                    </div>
                    <table align="center" cellpadding="5" cellspacing="0" class="jobs">
                        <tr>
                            <td>
                                <input type="checkbox" name="checkAll" onclick="CheckAll_OnClick(this,this.form.ID);" />
                            </td>
                            <td>
                                <strong>应聘职位</strong>
                            </td>
                            <td>
                                <strong>岗位性质</strong>
                            </td>
                            <td>
                                <strong>公司名称</strong>
                            </td>
                            <td>
                                <strong>工作地点</strong>
                            </td>
                            <td>
                                <strong>已申请人数</strong>
                            </td>
                            <td>
                                <strong>应聘日期</strong>
                            </td>
                            <td>
                                <strong>发布日期</strong>
                            </td>
                            <td>
                                <strong>公司阅读状态</strong>
                            </td>
                            <td>
                                <strong>操作</strong>
                            </td>
                        </tr>
                        <% using (Html.BeginForm("DelPersonJobApplyHistories", "person", FormMethod.Post, new { @class = "form" }))
                           { %>
                        <% foreach (var item in Model)
                           { %>
                        <tr style="text-align: center;">
                            <td>
                                <%=Html.CheckBox("CheckItem",false) %>
                            </td>
                            <td>
                                <a target="_blank" title="网页设计师" href="#">
                                    <%=item.Post.Name %></a>
                            </td>
                            <td>
                                <%=item.Post.Post_Class.Name %>
                            </td>
                            <td>
                                <a target="_blank" title="深圳市双伟科技有限公司" href="#">
                                    <%=item.Post.Company.Name %></a>
                            </td>
                            <td>
                                <%=item.Post.Location %>
                            </td>
                            <td>
                                <%=item.Post.Number %>
                            </td>
                            <td>
                                <%=item.ApplyTime %>
                            </td>
                            <td align="center">
                                <%=item.Post.PostTime %>
                            </td>
                            <td align="center">
                                <%=item.ApplyReadStatus %>
                            </td>
                            <td>
                                <%= Html.ActionLink("删除", "DelPersonFavorite", new { id = item.JobHistoryId}, new { onclick = "javascript:return confirm('确定要删除吗？');" })%>
                            </td>
                        </tr>
                        <%} %>
                        <tr>
                            <td colspan="4">
                                <input type="checkbox" name="checkAll" id="checkAll" onclick="CheckAll_OnClick(this,this.form.ID)" />全部选中
                            </td>
                            <td colspan="6" class="button">
                                <input type="submit" name="btnDel" value="删除所选" id="btnDel" />
                            </td>
                        </tr>
                        <%} %>
                    </table>
                    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                        <tr>
                            <td height="24" align="center">
                                <span class="page">总计<span class="red">6</span> 个记录，共 <span class="red">23</span> 页
                                    <a href="####" title="">首页</a> <a href="####" title="">上一页</a> <a href="####" title="">
                                        [1]</a> <span class="red">[2]</span> <a href="####" title="">[3]</a> <a href="####"
                                            title="">[4]</a> <a href="####" title="">[5]</a> <a href="####" title="">[6]</a>
                                    <a href="####" title="">下一页</a> <a href="####" title="">尾页</a></span>
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
            <table style="width: 100%; border: 0px;" cellpadding="5" cellspacing="0">
                <tr>
                    <td align="right">
                    </td>
                </tr>
            </table>
        </div>
    </div>
</asp:Content>
